package com.zx.mes.upms.hyl.entity;

import com.zx.mes.upms.hyl.pagemodel.Badge;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * 
 * 
 * @author hyl
 * @email 632105841@qq.com
 * @date 2018-04-08 15:10:44
 */
@Table(name = "menu")
public class Menu implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private String id;
	
	    //
    @Column(name = "name")
    private String name;
	
	    //
    @Column(name = "url")
    private String url;
	
	    //
    @Column(name = "icon")
    private String icon;
	
	    //
    @Column(name = "variant")
    private String variant;
	
	    //
    @Column(name = "text")
    private String text;
	
	    //
    @Column(name = "pid")
    private String pid;

    @Transient
	private List<Menu> children = new ArrayList<>(15);

	@Transient
	private Badge badge=new Badge();

	public Badge getBadge() {
		return badge;
	}

	public void setBadge(Badge badge) {
		this.badge = badge;
	}

	/**
	 * 设置：
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 获取：
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * 设置：
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}
	/**
	 * 获取：
	 */
	public String getIcon() {
		return icon;
	}
	/**
	 * 设置：
	 */
	public void setVariant(String variant) {
		this.variant = variant;
	}
	/**
	 * 获取：
	 */
	public String getVariant() {
		return variant;
	}
	/**
	 * 设置：
	 */
	public void setText(String text) {
		this.text = text;
	}
	/**
	 * 获取：
	 */
	public String getText() {
		return text;
	}
	/**
	 * 设置：
	 */
	public void setPid(String pid) {
		this.pid = pid;
	}
	/**
	 * 获取：
	 */
	public String getPid() {
		return pid;
	}

	public List<Menu> getChildren() {
		return children;
	}

	public void setChildren(List<Menu> children) {
		this.children = children;
	}
}
